const app = getApp()
export default {
    components: {},
    data() {
        return {
            baseUrl: getApp().globalData.baseUrl,
            wsBaseUrl: getApp().globalData.wsBaseUrl,
            kefuInfo: {
                avator: '',
                nickname: '',
                username: '',
            },
            messages: [],
            messageContent: '',
            sendDisabled: false,
            token: '',
            visitor: {},
            visitor_id: '',
            visitorExtra: [],
            visitor_name: '',
            visitor_ip: '',
            isDisabled: false,
            area: '',
            showArea: false,
            scrollSize: 2,
            showFaceIcon: true,
            face: [],
            noticeContent: '通知: 无112',
            currentPage: 1,
            loadMoreDisable: false,
            showLoadMore: false,
            inputingAction: '',
            moremessage: '点击加载更多记录',
            showRecorder: false,
            recorder: null,
            realName: '',
            tel: '',
            wechat: '',
            qq: '',
            email: '',
            comment: '',
            replys: [],
            ent_replys: [],
            visitorTags: [],
            entTags: [],
            tagName: '',
            messageExist: [],
            Loop: null,
            voicePath: '',
            visitorProfile: false,
            fastReplyBtn: false,
            recorderBtn: true,
            otherKefuBtn: false,
            endRecorderBtn: true,
            sendRecorderBtn: false,
            remark: false,
            otherKefuList: [],
            robotStatus: true,
            peerjs: {
                peer: null,
                peerjsId: '',
                localStream: null,
                remoteAudioStream: null,
                remoteVideoStream: null,
                call: null,
                visitorId: '',
                callCancel: false,
            },
            searchReplyItem: '',
            visitorLang: '',
            dstLang: '',
            allLang: [
                { text: '选择语种', value: '' },
                { text: '中文(简体)', value: 'zh' },
                { text: '中文(繁体)', value: 'cht' },
                { text: '中文(文言文)', value: 'wyw' },
                { text: '中文(粤语)', value: 'yue' },
                { text: 'English', value: 'en' },
                { text: 'Español (西班牙语)', value: 'spa' },
                { text: 'Français (法语)', value: 'fra' },
                { text: 'Deutsch (德语)', value: 'de' },
                { text: 'Italiano (意大利语)', value: 'it' },
                { text: 'Português (葡萄牙语)', value: 'pt' },
                { text: 'Русский (俄语)', value: 'ru' },
                { text: 'العربية (阿拉伯语)', value: 'ara' },
                { text: 'हिन्दी (印地语)', value: 'hi' },
                { text: '日本語', value: 'jp' },
                { text: '한국어', value: 'kor' },
                { text: 'Tiếng Việt (越南语)', value: 'vie' },
                { text: 'ภาษาไทย (泰语)', value: 'th' },
                { text: 'Bahasa Indonesia (印尼语)', value: 'id' },
                { text: 'Bahasa Melayu (马来语)', value: 'may' },
                { text: 'Filipino (菲律宾语)', value: 'fil' },
                { text: 'မြန်မာစာ (缅甸语)', value: 'bur' },
                { text: 'ភាសាខ្មែរ (高棉语)', value: 'hkm' },
                { text: 'ພາສາລາວ (老挝语)', value: 'lao' },
                { text: 'Tetun (东帝汶德顿语)', value: 'tet' },
                { text: 'Chamoru (关岛查莫罗语)', value: 'ch' },
                { text: 'Cebuano (宿务语)', value: 'ceb' },
                { text: 'Jawa (爪哇语)', value: 'jav' },
                { text: 'Sunda (巽他语)', value: 'sun' },
                { text: 'Karen (克伦语)', value: 'kar' },
                { text: 'Lanna (兰纳语)', value: 'nod' },
                { text: 'தமிழ் (泰米尔语)', value: 'tam' },
                { text: 'తెలుగు (泰卢固语)', value: 'tel' },
                { text: 'മലയാളം (马拉雅拉姆语)', value: 'mal' },
                { text: 'اردو (乌尔都语)', value: 'urd' },
                { text: 'فارسی (波斯语)', value: 'per' },
                { text: 'پښتو (普什图语)', value: 'pus' },
                { text: 'کوردی (库尔德语)', value: 'kur' },
                { text: 'עברית (希伯来语)', value: 'heb' },
                { text: 'ትግርኛ (提格雷尼亚语)', value: 'tir' },
                { text: 'Nederlands (荷兰语)', value: 'nl' },
                { text: 'Svenska (瑞典语)', value: 'swe' },
                { text: 'Norsk (挪威语)', value: 'nor' },
                { text: 'Dansk (丹麦语)', value: 'dan' },
                { text: 'Suomi (芬兰语)', value: 'fin' },
                { text: 'Polski (波兰语)', value: 'pl' },
                { text: 'Čeština (捷克语)', value: 'cs' },
                { text: 'Magyar (匈牙利语)', value: 'hu' },
                { text: 'Română (罗马尼亚语)', value: 'rom' },
                { text: 'Українська (乌克兰语)', value: 'ukr' },
                { text: 'Ελληνικά (希腊语)', value: 'el' },
                { text: 'Hrvatski (克罗地亚语)', value: 'hrv' },
                { text: 'Српски (塞尔维亚语)', value: 'srp' },
                { text: 'Swahili (斯瓦希里语)', value: 'swa' },
                { text: 'Hausa (豪萨语)', value: 'hau' },
                { text: 'Yoruba (约鲁巴语)', value: 'yor' },
                { text: 'isiZulu (祖鲁语)', value: 'zul' },
                { text: 'Afrikaans (南非荷兰语)', value: 'afr' },
                { text: 'አማርኛ (阿姆哈拉语)', value: 'amh' },
                { text: 'ʻŌlelo Hawaiʻi (夏威夷语)', value: 'haw' },
                { text: 'Māori (毛利语)', value: 'mao' },
                { text: 'Quechua (克丘亚语)', value: 'que' },
                { text: 'Nahuatl (纳瓦特尔语)', value: 'nah' },
                { text: 'Esperanto (世界语)', value: 'epo' },
                { text: 'Latina (拉丁语)', value: 'lat' },
                { text: 'Gaeilge (爱尔兰语)', value: 'gle' },
                { text: 'Occitan (奥克语)', value: 'oci' },
                { text: 'Shqip (阿尔巴尼亚语)', value: 'alb' },
                { text: 'Aragonés (阿拉贡语)', value: 'arg' },
                { text: 'Asturianu (阿斯图里亚斯语)', value: 'ast' },
                { text: 'Eesti (爱沙尼亚语)', value: 'est' },
                { text: 'Brezhoneg (布列塔尼语)', value: 'bre' },
                { text: 'Euskara (巴斯克语)', value: 'baq' },
                { text: 'Беларуская (白俄罗斯语)', value: 'bel' },
                { text: 'Български (保加利亚语)', value: 'bul' },
                { text: 'Íslenska (冰岛语)', value: 'ice' },
                { text: 'Bosanski (波斯尼亚语)', value: 'bos' },
                { text: 'Català (加泰罗尼亚语)', value: 'cat' },
                { text: 'Galego (加利西亚语)', value: 'glg' },
                { text: 'ქართული (格鲁吉亚语)', value: 'geo' },
                { text: 'ગુજરાતી (古吉拉特语)', value: 'guj' },
                { text: 'Kreyòl ayisyen (海地语)', value: 'ht' },
                { text: 'Հայերեն (亚美尼亚语)', value: 'arm' },
                { text: 'ಕನ್ನಡ (卡纳达语)', value: 'kan' },
                { text: 'Кыргызча (吉尔吉斯语)', value: 'kir' },
                { text: 'Lietuvių (立陶宛语)', value: 'lit' },
                { text: 'Latviešu (拉脱维亚语)', value: 'lav' },
                { text: 'Македонски (马其顿语)', value: 'mac' },
                { text: 'മലയാളം (马拉雅拉姆语)', value: 'mal' },
                { text: 'Malti (马耳他语)', value: 'mlt' },
                { text: 'नेपाली (尼泊尔语)', value: 'nep' },
                { text: 'ਪੰਜਾਬੀ (旁遮普语)', value: 'pan' },
                { text: 'Slovenčina (斯洛伐克语)', value: 'sk' },
                { text: 'Slovenščina (斯洛文尼亚语)', value: 'slo' },
                { text: 'Soomaali (索马里语)', value: 'som' },
                { text: 'Kiswahili (斯瓦希里语)', value: 'swa' },
                { text: 'தமிழ் (泰米尔语)', value: 'tam' },
                { text: 'తెలుగు (泰卢固语)', value: 'tel' },
                { text: 'Türkçe (土耳其语)', value: 'tr' },
                { text: 'اردو (乌尔都语)', value: 'urd' },
                { text: 'Oʻzbekcha (乌兹别克语)', value: 'uzb' },
                { text: 'Cymraeg (威尔士语)', value: 'wel' },
            ],
            emojis: {
                smile: '😄',
                smiley: '😃',
                grinning: '😀',
                blush: '😊',
                wink: '😉',
                heart_eyes: '😍',
                kissing_heart: '😘',
                kissing_closed_eyes: '😚',
                kissing: '😗',
                kissing_smiling_eyes: '😙',
                stuck_out_tongue_winking_eye: '😜',
                stuck_out_tongue_closed_eyes: '😝',
                stuck_out_tongue: '😛',
                flushed: '😳',
                grin: '😁',
                pensive: '😔',
                relieved: '😌',
                unamused: '😒',
                disappointed: '😞',
                persevere: '😣',
                cry: '😢',
                joy: '😂',
                sob: '😭',
                sleepy: '😪',
                disappointed_relieved: '😥',
                cold_sweat: '😰',
                sweat_smile: '😅',
                sweat: '😓',
                weary: '😩',
                tired_face: '😫',
                fearful: '😨',
                scream: '😱',
                angry: '😠',
                rage: '😡',
                triumph: '😤',
                confounded: '😖',
                laughing: '😆',
                yum: '😋',
                mask: '😷',
                sunglasses: '😎',
                sleeping: '😴',
                dizzy_face: '😵',
                astonished: '😲',
                worried: '😟',
                frowning: '😦',
                anguished: '😧',
                imp: '👿',
                open_mouth: '😮',
                grimacing: '😬',
                neutral_face: '😐',
                confused: '😕',
                hushed: '😯',
                smirk: '😏',
                expressionless: '😑',
                man_with_gua_pi_mao: '👲',
                man_with_turban: '👳',
                cop: '👮',
                construction_worker: '👷',
                guardsman: '💂',
                baby: '👶',
                boy: '👦',
                girl: '👧',
                man: '👨',
                woman: '👩',
                older_man: '👴',
                older_woman: '👵',
                person_with_blond_hair: '👱',
                angel: '👼',
                princess: '👸',
                smiley_cat: '😺',
                smile_cat: '😸',
                heart_eyes_cat: '😻',
                kissing_cat: '😽',
                smirk_cat: '😼',
                scream_cat: '🙀',
                crying_cat_face: '😿',
                joy_cat: '😹',
                pouting_cat: '😾',
                japanese_ogre: '👹',
                japanese_goblin: '👺',
                see_no_evil: '🙈',
                hear_no_evil: '🙉',
                speak_no_evil: '🙊',
                skull: '💀',
                alien: '👽',
                hankey: '💩',
                fire: '🔥',
                sparkles: '✨',
                star2: '🌟',
                dizzy: '💫',
                boom: '💥',
                anger: '💢',
                sweat_drops: '💦',
                droplet: '💧',
                zzz: '💤',
                dash: '💨',
                ear: '👂',
                eyes: '👀',
                nose: '👃',
                tongue: '👅',
                lips: '👄',
                thumbs_up: '👍',
                '-1': '👎',
                ok_hand: '👌',
                facepunch: '👊',
                fist: '✊',
                wave: '👋',
                hand: '✋',
                open_hands: '👐',
                point_up_2: '👆',
                point_down: '👇',
                point_right: '👉',
                point_left: '👈',
                raised_hands: '🙌',
                pray: '🙏',
                clap: '👏',
                muscle: '💪',
                walking: '🚶',
                runner: '🏃',
                dancer: '💃',
                couple: '👫',
                family: '👪',
                couplekiss: '💏',
                couple_with_heart: '💑',
                dancers: '👯',
                ok_woman: '🙆',
                no_good: '🙅',
                information_desk_person: '💁',
                raising_hand: '🙋',
                massage: '💆',
                haircut: '💇',
                nail_care: '💅',
                bride_with_veil: '👰',
                person_with_pouting_face: '🙎',
                person_frowning: '🙍',
                bow: '🙇',
                tophat: '🎩',
                crown: '👑',
                womans_hat: '👒',
                athletic_shoe: '👟',
                mans_shoe: '👞',
                sandal: '👡',
                high_heel: '👠',
                boot: '👢',
                shirt: '👕',
                necktie: '👔',
                womans_clothes: '👚',
                dress: '👗',
                running_shirt_with_sash: '🎽',
                jeans: '👖',
                kimono: '👘',
                bikini: '👙',
                briefcase: '💼',
                handbag: '👜',
                pouch: '👝',
                purse: '👛',
                eyeglasses: '👓',
                ribbon: '🎀',
                closed_umbrella: '🌂',
                lipstick: '💄',
                yellow_heart: '💛',
                blue_heart: '💙',
                purple_heart: '💜',
                green_heart: '💚',
                broken_heart: '💔',
                heartpulse: '💗',
                heartbeat: '💓',
                two_hearts: '💕',
                sparkling_heart: '💖',
                revolving_hearts: '💞',
                cupid: '💘',
                love_letter: '💌',
                kiss: '💋',
                ring: '💍',
                gem: '💎',
                bust_in_silhouette: '👤',
                speech_balloon: '💬',
                footprints: '👣',
            },
        }
    },
    // 页面显示
    onLoad(options) {},
    onShow() {},
    methods: {},
}
